<%@ taglib prefix="s" uri="/struts-tags"%>

<jsp:include page="../../includes/libtags.jsp" />

<s:if test="#session.Vehiculo != null">


	<s:if test="#session.Vehiculo.mercancias != null">

		<table border="0" cellpadding="3" cellspacing="1" bgcolor="#D01313">
			<tr>
				<td bgcolor="#F9DBDB"><strong>Descripcion</strong></td>
				<td bgcolor="#F9DBDB"><strong>Largo(mt)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Ancho(mt)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Alto(mt)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Peso(KG)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Opcion</strong></td>
			</tr>

			<s:iterator value="#session.Vehiculo.mercancias" status="mercancia">

				<tr>
					<td bgcolor="#F9DBDB"><s:property value="descripcion" /></td>
					<td align="center" bgcolor="#F9DBDB"><s:property value="largo" /></td>
					<td align="center" bgcolor="#F9DBDB"><s:property value="ancho" /></td>
					<td align="center" bgcolor="#F9DBDB"><s:property value="alto" /></td>
					<td bgcolor="#F9DBDB"><s:property value="peso" /></td>
					<td align="center" bgcolor="#F9DBDB"><input type="button"
						value="Eliminar" class="button"
						onclick="eliminarMercancia(<s:property value="%{#mercancia.index}" />)" />
					</td>
				</tr>

			</s:iterator>

		</table>

	</s:if>
	<s:else>
		<table border="0" cellpadding="3" cellspacing="1" bgcolor="#D01313">
			<tr>
				<td bgcolor="#F9DBDB"><strong>Descripcion</strong></td>
				<td bgcolor="#F9DBDB"><strong>Largo(mt)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Ancho(mt)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Alto(mt)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Peso(KG)</strong></td>
				<td bgcolor="#F9DBDB"><strong>Opcion</strong></td>
			</tr>
			<tr>
				<td colspan="6" align="center" bgcolor="#F9DBDB"><strong>No
						hay datos existentes.</strong></td>
			</tr>
		</table>
	</s:else>

</s:if>
<s:else>


	<table border="0" cellpadding="3" cellspacing="1" bgcolor="#D01313">
		<tr>
			<td bgcolor="#F9DBDB"><strong>Descripcion</strong></td>
			<td bgcolor="#F9DBDB"><strong>Largo(mt)</strong></td>
			<td bgcolor="#F9DBDB"><strong>Ancho(mt)</strong></td>
			<td bgcolor="#F9DBDB"><strong>Alto(mt)</strong></td>
			<td bgcolor="#F9DBDB"><strong>Peso(KG)</strong></td>
			<td bgcolor="#F9DBDB"><strong>Opcion</strong></td>
		</tr>
		<tr>
			<td colspan="6" align="center" bgcolor="#F9DBDB"><strong>No
					hay datos existentes.</strong></td>
		</tr>
	</table>

</s:else>





